home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / smail-3.1.28 / samples / generic / routers < prev    next >
Encoding:
Text File  |  1992-08-08  |  4.7 KB  |  117 lines

  1. # @(#)samples/generic/routers    1.3 8/8/92 16:40:26
  2.  
  3. # This file defines the configuration of the router subsystem as
  4. # compiled into the smail binary.  By modifying the source files
  5. # conf/EDITME, src/config.h or src/default.c the actual internal
  6. # configuration can be changed.  Thus, this should be matched up
  7. # against thes files before assuming this is completely correct.
  8.  
  9. # force_paths - override file for routing
  10. #
  11. # This entry is not in the compiled-in routers, for now.  However,
  12. # this entry can be very useful for adding temporary override routes,
  13. # if some paths are known to be useless for transient reasons, or for
  14. # organizing internal networks without the use of map files.  It can
  15. # also be used to define UUCP sites that you MX for, if you are using
  16. # DNS with the bind router.  In the MX case, add an entry to the file
  17. # /usr/lib/smail/forcepaths such as:
  18. #
  19. #    .foo.org    foo-uucp-gateway!%s
  20. #
  21. # to cause all E-mail to the foo.org domain to be sent to its uucp
  22. # gateway, rather than being matched by the MX router, which will
  23. # not correctly handle MX to UUCP gatewaying, if you use the bind
  24. # version of the inet_hosts router, below.
  25. #
  26. # The file is defined to be an unsorted ASCII file, so that direct
  27. # editing is possible and reasonable.  The "always" attribute forces
  28. # use of the router even if a later router (such as the bind version
  29. # of inet_hosts) gets a better match (note that DNS wildcard matches
  30. # count as complete hostname matches).  Thus, with the .foo.org
  31. # entry above, foo.foo.org would be matched here, even if foo.foo.org
  32. # were matched by inet_hosts or the regular paths router.
  33. #
  34. #force_paths:
  35. #    driver=pathalias,
  36. #    transport=uux,            # deliver using uux to rmail
  37. #    always;                # force use even if some other
  38. #                    # router gets a more complete match
  39. #
  40. #    file=forcepaths,        # plain ASCII file (unsorted)
  41. #    proto=lsearch,            # use linear search
  42. #    optional,            # ignore if the file does not exist
  43.  
  44. # inet_addrs and inet_hosts are only defined when BSD networking exists
  45.  
  46. # inet_addrs - match domain literals containing literal IP addresses
  47. #
  48. # For example, [128.103.1.1] will match harvard.harvard.edu on the internet.
  49. # The library routine gethostbyaddr(3N) will be called to see if a reverse
  50. # mapping to the cononical hostname is available.
  51. inet_addrs:
  52.     driver=gethostbyaddr,        # router to match IP domain literals
  53.     transport=smtp;            # deliver using SMTP over TCP/IP
  54.  
  55.     fail_if_error,            # fail malformed domain literal addrs
  56.     check_for_local,        # see if this is really the local host
  57.  
  58. # inet_hosts - match hostnames with gethostbyname(3N)
  59. #
  60. # Comment this out if you wish to use the bind version below, instead.
  61. inet_hosts:
  62.     driver=gethostbyname,        # match hosts with the library function
  63.     transport=smtp;            # use default SMTP (may be UUCP-style)
  64.  
  65.     -required,            # no required domains
  66.     -domain,            # no defined domain suffixes
  67.     -only_local_domain,        # don't restrict to defined domains
  68.  
  69. # inet_hosts - alternate version using BIND to access the DNS
  70. #
  71. # This router is not compiled-in by default.  It can be used as a
  72. # replacement for the above inet_hosts router, if your system supports
  73. # a bind compatible DNS resolver library.  This should be used for
  74. # systems on the internet.
  75. #inet_hosts:
  76. #    driver=bind,
  77. #    transport=smtp;            # use TCP/IP SMTP for delivery
  78. #
  79. #    defnames,            # use standard domain searching
  80. #    defer_no_connect,        # try again if the nameserver is down
  81. #    -local_mx_okay,            # fail (don't pass through) an MX
  82. #                    # to the local host
  83.  
  84. # paths - route using a paths file, like that produced by the pathalias program
  85. paths:    driver=pathalias,        # general-use paths router
  86.     transport=uux;            # for matches, deliver over UUCP
  87.  
  88.     file=paths,            # sorted file containing path info
  89.     proto=bsearch,            # use a binary search
  90. #    proto=dbm,            # use a dbm files
  91.     optional,            # ignore if the file does not exist
  92.     -required,            # no required domains
  93.     domain=uucp,            # strip ending ".uucp" before searching
  94.  
  95. # uucp_neighbors - match neighbors accessible over UUCP
  96. uucp_neighbors:
  97.     driver=uuname,            # use a program which returns neighbors
  98.     transport=uux;
  99.  
  100.     cmd=/usr/bin/uuname,        # specifically, use the uuname program
  101.     domain=uucp,            # strip ending ".uucp" before searching
  102.  
  103. # smart_host - a partically specified smarthost director
  104. #
  105. # If the config file attribute smart_path is defined as a path from the
  106. # local host to a remote host, then hostnames not matched otherwise will
  107. # be sent off to the stated remote host.  The config file attribute
  108. # smart_transport can be used to specify a different transport.
  109. #
  110. # If the smart_path attribute is not defined, this router is ignored.
  111. smart_host:
  112.     driver=smarthost,        # special-case driver
  113.     transport=uux;            # by default deliver over UUCP
  114.  
  115.     -path,                # use smart_path config file variable
  116. #    path=uunet,            # alternate, set path in this file
  117.